// -----------------------------------------------------------------------
//  <copyright file="ResourceIntegrationEvents.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2025 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2025/1/8 16:34</last-date>
// -----------------------------------------------------------------------

namespace DaprPlus.Authorization.Domain.IntegrationEvents;

public record ResourceDeletedIntegrationEvent : IntegrationEvent
{
    public ResourceDeletedIntegrationEvent(ResourceIntegrationEventDto[] dtos, string targetService)
    {
        Dtos = dtos;
        TargetService = targetService;
    }

    public ResourceIntegrationEventDto[] Dtos { get; }
}

public record ResourceUpdatedIntegrationEvent : IntegrationEvent
{
    public ResourceUpdatedIntegrationEvent(ResourceIntegrationEventDto[] dtos, string targetService)
    {
        Dtos = dtos;
        TargetService = targetService;
    }

    public ResourceIntegrationEventDto[] Dtos { get; }
}


public record ResourceIntegrationEventDto(string Code, ResourceType Type);
